home *** CD-ROM | disk | FTP | other *** search
/ NeXT Enterprise Objects Framework 1.1 / NeXT Enterprise Objects Framework 1.1.iso / NextDeveloper / Headers / eoadaptors / Oracle7 / OracleContext.h < prev    next >
Encoding:
Text File  |  1994-08-26  |  1.2 KB  |  46 lines

  1. // OracleContext.h 
  2. // Copyright (c) 1994, NeXT Computer, Inc.  All rights reserved.
  3.  
  4. #import "ociapr.h"
  5. #import <eoaccess/eoaccess.h>
  6.  
  7. @class OracleAdaptor;
  8. @class OracleChannel;
  9.  
  10. @interface OracleContext:EOAdaptorContext
  11. {
  12.     Lda_Def _lda;
  13.     ub1 _hda[256];
  14.     OracleAdaptor *_adaptor;
  15.     unsigned short _transactionNestingLevel;
  16.     unsigned short _fetchesInProgress;
  17.     unsigned short _openCursors;
  18.     unsigned short _debugCount;
  19.     BOOL _connected;
  20. }
  21.  
  22. - initWithOracleAdaptor:(OracleAdaptor *)adaptor;
  23.  
  24. - (Lda_Def *)logonDataArea;
  25. - (ub1 *)hostDataArea;
  26.     // These return NULL if the context is not connected.
  27.     
  28. - (unsigned)fetchesInProgress;
  29.  
  30. - (BOOL)connect;
  31. - (BOOL)disconnect;
  32. - (BOOL)isConnected;
  33.     // Used internally by the adaptor and channel.
  34.  
  35. - (BOOL)oracleChannelWillBeginFetching:(OracleChannel *)cursor;
  36. - (void)oracleChannelDidEndFetching:(OracleChannel *)cursor;
  37. - (BOOL)oracleChannelWillOpen:(OracleChannel *)cursor;
  38. - (void)oracleChannelDidClose:(OracleChannel *)cursor;
  39. - (BOOL)oracleChannelWillBeginDebugging:(OracleChannel *)cursor;
  40. - (void)oracleChannelDidEndDebugging:(OracleChannel *)cursor;
  41.     // These methods are called by OracleChannels to stay synchronized with
  42.     // the context.
  43.  
  44. @end
  45.  
  46.